package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.MacApplyDto;
import com.woniuxy.company5.dto.MacApplyDto1;
import com.woniuxy.company5.entity.MacApply;
import com.woniuxy.company5.mapper.MacApplyMapper;
import com.woniuxy.company5.service.MacApplyService;
import com.woniuxy.company5.vo.MacApplyVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MacApplyServiceImpl implements MacApplyService {
    @Resource
    private MacApplyMapper macApplyMapper;

    @Override
    public List<MacApplyVo> selAllMacApply(MacApplyDto macApplyDto) {
        return macApplyMapper.selAllMacApply(macApplyDto);
    }

    @Override
    public MacApply selOneById(Long id) {
        return macApplyMapper.selectByPrimaryKey(id);
    }

    @Override
    public Integer addMacApply(MacApply macApply) {
        return macApplyMapper.insertSelective(macApply);
    }

    @Override
    public Integer update(MacApplyDto1 applyDto1) {
        return macApplyMapper.updateByPrimaryKeySelective(applyDto1);
    }
}
